/************************************************************************/
/* Game                                                                 */
/************************************************************************/
#include "Game/Game Objects/Towers/Shots/SplashShot.h"

namespace TD_Game {

	/************************************************************************/
	/* ctors and dtors                                                      */
	/************************************************************************/
	SplashShot::SplashShot() {

	}

	SplashShot::SplashShot(const SplashShot &rhs) {

	}

	SplashShot & SplashShot::operator =(const SplashShot &rhs) {
		BaseEntity::operator =(rhs);
		return(*this);
	}

	SplashShot::SplashShot(const Coord2D &initialPosition, const BaseMario *targetCreep, unsigned int creepID, shotTypes shotType) 
		: BaseShot(initialPosition, 20, targetCreep, creepID) {
			m_pAnimationSet = AnimationSetFactory::createShotAnimationSet(shotType, "Moving");
			m_shapes.push_back(new RectangleShape(m_position, m_pAnimationSet->getSprites()->getTilesize()));
	}

	void SplashShot::hitTarget() {
		
		m_pTargetMario->receiveDamage(m_shotDamage);
	}
}